<template>
	<view class="guide-parent-view" :style="{height: viewHeight}" >
		<image src="../../static/logo.png" class="app-icon" mode="aspectFill"></image>
		<text class="app-name">拾亲</text>
		<text class="app-desc">一切尽在拾亲APP</text>
		<text class="app-desc1">在应用商店搜索 打开‘拾亲’查看更多精彩内容</text>
		<text class="app-desc2">点击下方按钮即可复制下载链接</text>
		<text class="app-url-btn" @click="copyUrl">复制到粘贴板</text>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				viewHeight:0
			}
		},
		methods: {
			onLoad: function(options) {
				uni.getSystemInfo({
					success:  (res)=> {
						const wid = res.windowWidth
						const hei = res.windowHeight
						// 230是除了可滚动区域外的其它部分占的rpx高度
						this.viewHeight=hei*2 +'rpx'
					}
				});
			},
			copyUrl(){
				uni.setClipboardData({
				    data: 'https://a.shiqin.wang/index/App/sharedown?id=0',
				    success: function () {
						uni.showToast({
							title:"复制成功",
							duration:1500,
							icon:'none',
						})
				    }
				});
			}
		}
	}
</script>

<style>
	@import "index.css";
</style>
